package com.spic.business.registrationform.service.impl;

import java.util.List;

import com.spic.business.registrationform.domain.ArchiveStaffDisciplinaryRecords;
import com.spic.business.registrationform.mapper.ArchiveStaffDisciplinaryRecordsMapper;
import com.spic.business.registrationform.service.IArchiveStaffDisciplinaryRecordsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 员工安全生产奖惩记录Service业务层处理
 * 
 * @author spic
 * @date 2022-07-20
 */
@Service
public class ArchiveStaffDisciplinaryRecordsServiceImpl implements IArchiveStaffDisciplinaryRecordsService
{
    @Autowired
    private ArchiveStaffDisciplinaryRecordsMapper archiveStaffDisciplinaryRecordsMapper;

    /**
     * 查询员工安全生产奖惩记录
     * 
     * @param rewardsId 员工安全生产奖惩记录主键
     * @return 员工安全生产奖惩记录
     */
    @Override
    public ArchiveStaffDisciplinaryRecords selectArchiveStaffDisciplinaryRecordsByRewardsId(Long rewardsId)
    {
        return archiveStaffDisciplinaryRecordsMapper.selectArchiveStaffDisciplinaryRecordsByRewardsId(rewardsId);
    }

    /**
     * 查询员工安全生产奖惩记录列表
     * 
     * @param archiveStaffDisciplinaryRecords 员工安全生产奖惩记录
     * @return 员工安全生产奖惩记录
     */
    @Override
    public List<ArchiveStaffDisciplinaryRecords> selectArchiveStaffDisciplinaryRecordsList(ArchiveStaffDisciplinaryRecords archiveStaffDisciplinaryRecords)
    {
        return archiveStaffDisciplinaryRecordsMapper.selectArchiveStaffDisciplinaryRecordsList(archiveStaffDisciplinaryRecords);
    }

    /**
     * 新增员工安全生产奖惩记录
     * 
     * @param archiveStaffDisciplinaryRecords 员工安全生产奖惩记录
     * @return 结果
     */
    @Override
    public int insertArchiveStaffDisciplinaryRecords(ArchiveStaffDisciplinaryRecords archiveStaffDisciplinaryRecords)
    {
        return archiveStaffDisciplinaryRecordsMapper.insertArchiveStaffDisciplinaryRecords(archiveStaffDisciplinaryRecords);
    }

    /**
     * 修改员工安全生产奖惩记录
     * 
     * @param archiveStaffDisciplinaryRecords 员工安全生产奖惩记录
     * @return 结果
     */
    @Override
    public int updateArchiveStaffDisciplinaryRecords(ArchiveStaffDisciplinaryRecords archiveStaffDisciplinaryRecords)
    {
        return archiveStaffDisciplinaryRecordsMapper.updateArchiveStaffDisciplinaryRecords(archiveStaffDisciplinaryRecords);
    }

    /**
     * 批量删除员工安全生产奖惩记录
     * 
     * @param rewardsIds 需要删除的员工安全生产奖惩记录主键
     * @return 结果
     */
    @Override
    public int deleteArchiveStaffDisciplinaryRecordsByRewardsIds(Long[] rewardsIds)
    {
        return archiveStaffDisciplinaryRecordsMapper.deleteArchiveStaffDisciplinaryRecordsByRewardsIds(rewardsIds);
    }

    /**
     * 删除员工安全生产奖惩记录信息
     * 
     * @param rewardsId 员工安全生产奖惩记录主键
     * @return 结果
     */
    @Override
    public int deleteArchiveStaffDisciplinaryRecordsByRewardsId(Long rewardsId)
    {
        return archiveStaffDisciplinaryRecordsMapper.deleteArchiveStaffDisciplinaryRecordsByRewardsId(rewardsId);
    }

    @Override
    public int deleteArchiveStaffDisciplinaryRecordsByStaffArchiveIds(String[] staffArchiveIds) {
        return archiveStaffDisciplinaryRecordsMapper.deleteArchiveStaffDisciplinaryRecordsByStaffArchiveIds(staffArchiveIds);
    }
}
